<div class="pageHeader">
	<form action="/fetion/query" method="post" class="pageForm required-validate" onsubmit="return navTabSearch(this);">
		{% csrf_token %}
		<div class="pageFormContent nowrap">
			<dl>
				<dt>请输入飞信帐号:</dt> 
				<dd>
					<input type="text" name="phone" class="required"/>
				</dd>
			</dl>
			<dl>
				<dt>请输入安全码:</dt>
				<dd>
					<input type="text" name="security" class="required"/>
				</dd>
			</dl>
			<dl>
				<dd><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></dd>
			</dl>
		</div>
	</form>
</div>
<div class="pageContent">
	<div layoutH="80">
		<table class="list" width="50%">
			<thead>
				<tr>
					<td>手机号</td>
					<td width="100">状态</td>
					<td>上次启动时间</td>
					<td width="100">操作</td>
				</tr>
			</thead>
			{% if status %}
			<tbody>
				<tr>
					<td>{{status.phone}}</td>
					<td>{{status.status}}</td>
					<td>{{status.login_time|date:"Y-m-d H:d:m"}}</td>
					<td>
						{% if status.status == 'ONLINE' %}
						<a href="/stop?phone={{status.phone}}&&security={{status.security}}" title="确定要下线吗？">下线</a>
						{% endif %}
					</td>
				</tr>
			</tbody>
			{% endif %}
		</table>
	</div>
</div>
